﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using WyUnity.Utility;

namespace UnitTest
{
    [TestClass]
    public class Test_GetICItem
    {

        [TestInitialize]
        public void Setup()
        {
            WyUnity.Data.DbManager.SetDefaultConnectionString(WyUnity.Data.DataAccess.Dialect.MSSQLDialect.Instance
                , "server=.;uid=sa;pwd=123456;database=jn2014;");
        }
        RFID_Interface.K3Service s = new RFID_Interface.K3Service();
        static Logger _log = Log.Get();

        [TestMethod]
        public void Test_GetICItem_1()
        {
            Output(s.Get_Material_Master(new[] { "01.03.1.01.2.1.0500601" }));
        }

        private void Output(object obj)
        {
            _log.Debug("aaaaa");
            Console.WriteLine(WyUnity.Utility.Serialiaze.ObjectToJson(obj));
        }
        private void Output(System.Collections.IEnumerable objs)
        {
            foreach (var o in objs)
            {
                Output(o);
            }
        }
    }
}
